<template>
  <div class="button-container">
    <div class="button-area">
      <el-button type="info" class="button" @click="handleReset">
        重置
      </el-button>
      <el-button type="warning" class="button" @click="handleCancel">
        取消
      </el-button>
      <el-button type="primary" class="button" @click="handleSave">
        保存
      </el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "button-area",
  props: {},
  data() {
    return {};
  },
  methods: {
    handleReset() {
      this.$emit("handleReset");
    },
    handleCancel() {
      this.$emit("handleCancel");
    },
    handleSave() {
      this.$emit("handleSave");
    },
  },
};
</script>

<style lang="scss" scoped>
.button-container {
  width: 100%;
  height: 50px;
  .button-area {
    width: 100%;
    height: 50px;
    display: flex;
    align-self: center;
    justify-content: space-between;
    .button {
      width: 80px;
      padding: 10px;
      margin-top: 10px;
      color: white;
      border: none;
      cursor: pointer;
    }
  }
}
</style>
